package com.mianyang.zhangsan.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.mianyang.zhangsan.common.constant.SecConstant;
import com.mianyang.zhangsan.model.entity.SecIdentity;
import com.mianyang.zhangsan.mapper.SecIdentityMapper;
import com.mianyang.zhangsan.service.ISecIdentityService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jiangjr
 * @since 2022-10-23
 */
@Service
public class SecIdentityServiceImpl extends ServiceImpl<SecIdentityMapper, SecIdentity> implements ISecIdentityService {

    @Override
    public SecIdentity companyMail() {
        QueryWrapper<SecIdentity> wrapper = new QueryWrapper<>();
        wrapper.eq("identity_id", SecConstant.COMPANY_IDENTITY);
        return baseMapper.selectOne(wrapper);
    }
}
